package com.person.consumerserver.controller;

import com.person.consumerserver.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName:com.person.consumerserver.controller
 * @ClassName: FeignController
 * @Description:
 * @author: Du Xiaobo
 * @date: 2020/1/16 15:48
 */
@RestController
@RequestMapping("/consumer")
public class FeignController {

    @Autowired
    private FeignService feignService;

    @RequestMapping("/hi")
    public String sayHi(@RequestParam String name) {
        return feignService.sayHiFromClientOne(name);
    }
}
